<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.core.sync.Barrier</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.core.sync.Barrier";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.core.sync.Barrier.html" class="symbol">tango.core.sync.Barrier</a></h1>
  
<div class="summary">The barrier module provides a primitive for synchronizing the progress of
 a group of threads.</div>
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Authors:</p>Sean Kelly
<dl>
<dt class="decl">class <a class="symbol _class" name="Barrier" href="./htmlsrc/tango.core.sync.Barrier.html#L38" kind="class" beg="38" end="105">Barrier</a>; <a title="Permalink to this symbol" href="#Barrier" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.sync.Barrier.html#L38">#</a></dt>
<dd class="ddef">
<div class="summary">This class represents a barrier across which threads may only travel in
 groups of a specific size.</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="Barrier.this" href="./htmlsrc/tango.core.sync.Barrier.html#L55" kind="ctor" beg="55" end="67">this</a><span class="params">(uint <em>limit</em>)</span>; <a title="Permalink to this symbol" href="#Barrier.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.sync.Barrier.html#L55">#</a></dt>
<dd class="ddef">
<div class="summary">Initializes a barrier object which releases threads in groups of limit
 in size.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>limit</em></td><td>The number of waiting threads to release in unison.</td></tr></table>
<p class="sec_header">Throws:</p>SyncException on error.</dd>
<dt class="decl">void <a class="symbol _function" name="Barrier.wait" href="./htmlsrc/tango.core.sync.Barrier.html#L81" kind="function" beg="81" end="96">wait</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Barrier.wait" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.core.sync.Barrier.html#L81">#</a></dt>
<dd class="ddef">
<div class="summary">Wait for the pre-determined number of threads and then proceed.</div>
<p class="sec_header">Throws:</p>SyncException on error.</dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright (C) 2005-2006 Sean Kelly.  All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:05 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>